import request from '@/utils/request'

// 查询市场建档列表
export function listReservation(query) {
  return request({
    url: '/system/reservation/list',
    method: 'get',
    params: query,
  })
}

// 查询市场建档详细
export function getReservation(id) {
  return request({
    url: '/system/reservation/' + id,
    method: 'get',
  })
}

// 新增市场建档
export function addReservation(data) {
  return request({
    url: '/system/reservation',
    method: 'post',
    data: data,
  })
}

// 修改市场建档
export function updateReservation(data) {
  return request({
    url: '/system/reservation',
    method: 'put',
    data: data,
  })
}

// 删除市场建档
export function delReservation(id) {
  return request({
    url: '/system/reservation/' + id,
    method: 'delete',
  })
}

// 导出市场建档
export function exportReservation(query) {
  return request({
    url: '/system/reservation/export',
    method: 'get',
    params: query,
  })
}
